﻿package hunterCommonlib.ui.button 
{
	import flash.display.MovieClip;
	import hunterCommonlib.core.EventManager;
	
	/**
	 * ...
	 * @author ...
	 */
	public class Button extends MovieClip
	{
		public var normalFrame:uint = 1;
		public var overFrame:uint=2;
		public var unableFrame:uint = 3
		private var _eventManager:EventManager
		public function Button() 
		{
			super();
			stop();
			_eventManager = new EventManager();
			_eventManager.target = this;
		}
		public function setEvent(type:String, callback:Function):void {
			_eventManager.addEvent(type, callback);
		}
		public function clearEvent():void {
			for (var i = 0;i<events
		}
		
	}
	
}